package com.zzjson.se.provider;

import com.zzjson.se.ResourceBundleDemo;

import java.util.Iterator;
import java.util.Locale;
import java.util.ServiceLoader;
import java.util.spi.ResourceBundleControlProvider;

/**
 * <p>****************************************************************************</p>
 * <p><b>Copyright © 2010-2020 shuncom team All Rights Reserved<b></p>
 * <ul style="margin:15px;">
 * <li>Description : com.zzjson.se.provider</li>
 * <li>Version     : 1.0.0</li>
 * <li>Creation    : 2020年04月08日</li>
 * <li>@author     : zzy0_0</li>
 * </ul>
 * <p>****************************************************************************</p>
 */
public class ProviderTest {
	public static void main(String[] args) {
		Locale.setDefault(Locale.CHINA);
		ResourceBundleDemo.withoutEncode();

		ServiceLoader<ResourceBundleControlProvider> serviceLoaders
				= ServiceLoader.load(ResourceBundleControlProvider.class);
		Iterator<ResourceBundleControlProvider> iterator = serviceLoaders.iterator();
		while (iterator.hasNext()) {

			ResourceBundleControlProvider next = iterator.next();
			System.out.println(next);
		}
	}
}
